<title>环境检查</title>
{{template "install/header.html" .}}
<div class="steps-content" style="font-size:16px;left: 20;
        right: 20;
        padding: 0;
        text-align: left;
        margin: 0;
        top: 258px;
        bottom: 44px;
        margin-top:20px;
         margin-bottom:120px;
">
    <div class="main" >
        <div class="text-box" id="text-box">
            <div class="license">
                <h3 style=" text-align: center;">环境检查</h3>

                <h3 style=" text-align: center;">Dcoker 环境检查</h3>
                {{if  .dockerVersion  }}

                    {{if  .dockerStatus  }}
                        <h4 style="margin-left:100px;">

                            <style>
                                .font-color{
                                    color:#096dd9;
                                }
                            </style>
                            <p> docker 安装正常，当前版本为: &nbsp; &nbsp;<span class="font-color">{{.dockerVersion}}</span></p>
                            <p> docker 容器总数: &nbsp; &nbsp;<span class="font-color">&nbsp;{{.Containers}}</span></p>
                            <p> docker 镜像总数: &nbsp; &nbsp;<span class="font-color">{{.Images}}</span></p>
                            <p> docker 根目录: &nbsp; &nbsp;<span class="font-color">{{.DockerRootDir}}</span></p>
                            <p> docker 服务器版本: &nbsp; <span class="font-color">&nbsp;{{.ServerVersion}}</span></p>
                            <p> docker 驱动: &nbsp; &nbsp;<span class="font-color">{{.Driver}}</span></p>
                            <p> docker 内存大小: &nbsp; <span class="font-color">&nbsp;{{.MemTotal}}</span></p>
                            <p> docker cpu数量: &nbsp; &nbsp;<span class="font-color">{{.CPUs}}</span></p>

                            </p>
                            <p>点击按钮进入下一步<br />

                            </p>

                        </h4>

                    {{else}}
                        <h4 style="margin-left:100px;">


                            <p> 您当前环境已经安装docker,但是还没有启动docker，请先启动docker<br />
                                docker安装说明:<br />
                                docker 是一款容器镜像管理技术，uniappadmin 所有的组件都是通过docker来进行管理，
                                您需要先请先启动docker
                            </p>




                        </h4>

                        <ul style="margin-left:100px;">
                            <li><a href="https://www.jianshu.com/p/3bfa8d09bc8b" target="_blank">了解什么是docker?</a></li>
                            <li><a href="https://www.runoob.com/docker/windows-docker-install.html" target="_blank">windows安装docker</a></li>
                            <li><a href="https://www.runoob.com/docker/ubuntu-docker-install.html" target="_blank">Liunx安装docker</a></li>
                            <li><a href="https://www.runoob.com/docker/macos-docker-install.html" target="_blank">Mac安装docker</a></li>
                            <li>安装docekr后重新打开或刷新本页面即可进入基础服务安装</li>
                        </ul>

                    {{end}}
                {{else}}
                    <h4>


                            <p> 您当前环境还没有装docker,请先下载docker<br />
                                docker安装说明:<br />
                                        docker 是一款容器镜像管理技术，uniappadmin 所有的组件都是通过docker来进行管理，
                                您需要先下载安装一下docker
                            </p>




                    </h4>

                    <ul>
                        <li><a href="https://www.jianshu.com/p/3bfa8d09bc8b" target="_blank">了解什么是docker?</a></li>
                        <li><a href="https://www.runoob.com/docker/windows-docker-install.html" target="_blank">windows安装docker</a></li>
                        <li><a href="https://www.runoob.com/docker/ubuntu-docker-install.html" target="_blank">Liunx安装docker</a></li>
                        <li><a href="https://www.runoob.com/docker/macos-docker-install.html" target="_blank">Mac安装docker</a></li>
                        <li>安装docekr后重新打开或刷新本页面即可进入基础服务安装</li>
                    </ul>
                {{end}}

{{/*                <p align="right">uniappadmin技术团队</p>*/}}
            </div>
        </div>

        {{if .dockerVersion}}
             {{if .dockerStatus}}

                <a href="/baseService" class="btn btn-primary">

                    <div id="protocol" style=" text-align: center;margin-bottom:100px;">
                        进入基础服务安装
                    </div>
                </a>
             {{end}}
        {{end}}

        {{/*            <div class="btn-box"><a href="" class="btn btn-primary">同意协议进入安装</a><a href="javascript:window.close()" class="btn">不同意</a></div>*/}}
    </div>

</div>
<script type="text/babel" src="/static/js/button2.js"></script>

<script type="text/babel" src="/static/js/steps2.js"></script>
{{template "install/footer.html" .}}